package dongshi.daddy.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.security.CodeSource;

public class ProviderWithCallbackMain {
    public static void main(String[] args) throws Exception {
         CodeSource codeSource = ProviderWithCallbackMain.class.getProtectionDomain().getCodeSource();
        System.out.println(codeSource.getLocation());
        ClassPathXmlApplicationContext ac
                = new ClassPathXmlApplicationContext("META-INF/spring/provider-with-call.xml");
        ac.start();
        System.in.read(); // 按任意键退出
    }
}
